import { http } from '@/utils/http'
import type { Patient } from '@/types/patient'

export function getPatients()  {
  return http<Patient[]>({
    method: 'GET',
    url: '/person/patient'
  })
}
export function getPatient(id: number)  {
  return http<Patient>({
    method: 'GET',
    url: `/person/patient/${id}`
  })
}
